<?php

    //注册类的自动加载
    spl_autoload_register('autoload',true,true);
    function autoload($class){
        echo 'in autoload function'.PHP_EOL;
        require_once('./Singwa.php');
    }
    
    $s=new Singwa();
    $s->say();

    $x=new Xiaoliu();
    $x->say();

?>